package com.aaa.common.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @className AssetArea
 * @Description TODO
 * @Author wyy
 * @Data 2021/1/21 18:48
 * @Version 1.0
 */
@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("asset_area")
public class AssetArea implements Serializable {
    private static final long serialVersionUID=546545L;
    /* id  @TableId("s_id")  其他字段  @TableField("s_age") //进行实力类中的字段和数据库中的进行匹配*/
    @TableId(type = IdType.AUTO)   //添加自动递增
    @TableField("area_id")
    private Integer areaId;        //区域编号
    @TableField("area_name")
    private String areaName;       //区域名
}
